package today.rocky.boot.dubbo.nacos.controller;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import today.rocky.boot.dubbo.nacos.service.IProService;

/**
 * @author Rocky
 * @date 2020/2/25 15:05
 */
@RestController
public class ConsumeController {

    @Reference
    private IProService proService;

    @GetMapping("/nacosHello")
    public String hello(){
        return proService.sayHello();
    }
}
